home *** CD-ROM | disk | FTP | other *** search
- public class EffectDiscEarthMeld extends Codex {
- float[] vecScale = new float[3];
- int _targetGuid;
- int _effectGuid;
-
- public void actorunstill(int actorGuid, int captureID) {
- CodexActor _Actor = new CodexActor(this._targetGuid);
- _Actor.RemoveActorEffect(this._effectGuid);
- }
-
- public void EndEffect() {
- ((Codex)this).KillAllTimers();
- this.vecScale[0] = 1.0F;
- this.vecScale[1] = 1.0F;
- this.vecScale[2] = 1.0F;
- CodexActor _Actor = new CodexActor(this._targetGuid);
- _Actor.RemoveActorEffect("ef_disc_earthmeld2");
- _Actor.RemoveActorEffect("ef_disc_earthmeld3");
- ((CodexThing)_Actor).SetScale(this.vecScale, 1.0F);
- ((CodexThing)_Actor).UnfreezeAnimations();
- ((CodexThing)_Actor).EndShell();
- _Actor.ClearActorFlags(4456457);
- }
-
- public void restore(int flags) {
- this._targetGuid = CodexSequence.RestoreInt();
- this._effectGuid = CodexSequence.RestoreInt();
- }
-
- public void effectstarted(int actorGuid, int effectGuid, int creatorGuid, int duration) {
- this._effectGuid = effectGuid;
- this._targetGuid = actorGuid;
- CodexActor _Actor = new CodexActor(this._targetGuid);
- ((Codex)this).CaptureThing(actorGuid);
- _Actor.SetActorFlags(4456457);
- this.vecScale[0] = 1.0F;
- this.vecScale[1] = 1.0F;
- this.vecScale[2] = 0.01F;
- ((CodexThing)_Actor).SetScale(this.vecScale, 1.0F);
- ((CodexThing)_Actor).SetShell(((CodexThing)_Actor).GetSurfaceMaterial(), 128, 0.99F, 1.0F, 5.0F, 1.0F);
- ((Codex)this).SetTimer(0.01F);
- }
-
- public void killed(int guid, int causeID, int captureID) {
- this.EndEffect();
- }
-
- public void save(int flags) {
- CodexSequence.SaveInt(this._targetGuid);
- CodexSequence.SaveInt(this._effectGuid);
- }
-
- public void timer(int timerID, float arg0, float arg1, float arg2, float arg3) {
- CodexActor _Actor = new CodexActor(this._targetGuid);
- _Actor.ActorStill();
- ((CodexThing)_Actor).FreezeAnimations();
- }
-
- public void effectended(int actorGuid, int effectGuid, int creatorGuid, int reason) {
- this.EndEffect();
- }
- }
-